
#ifndef TestParent_h
#define TestParent_h
// Note 1
#include <cppunit/extensions/HelperMacros.h>
class ParentTest : public CPPUNIT_NS::TestFixture // Note 2
{
CPPUNIT_TEST_SUITE( ParentTest ); // Note 3
CPPUNIT_TEST( testConstructor );
CPPUNIT_TEST( testSetParent );
CPPUNIT_TEST( testGetChild );
CPPUNIT_TEST( testGetParent );
CPPUNIT_TEST( testHasParent );
CPPUNIT_TEST( testHasChild );
CPPUNIT_TEST( testIsParent );
CPPUNIT_TEST( testSetParentBitMap );
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
// method to test the constructor
void testConstructor();
// method to test the assigning and retrieval of grades
void testSetParent();
void testGetChild();
void testGetParent();
void testHasParent();
void testHasChild();
void testIsParent();
void testSetParentBitMap();
};
#endif